import  popoverForm from '@/views/manage/hrm/target/config/form/popoverForm.vue'
export default async function(options) {
  let modifyComResult = options&&options.components&&options.components.modify
  let modifyCom=undefined;
  if(isFunction(modifyComResult)){
    modifyCom=  await modifyComResult().then(res=>res&&res.default)
  }else{
    modifyCom=modifyComResult
  }

  return {
    data(prop) {
    debugger
      return {}
    },

    render() {
      return (<popoverForm>
        <div>
          <modifyCom immediate={false} isPage={false} ref={'modify'} options={options} />
        </div>
        <div slot="reference">
          <slot></slot>
        </div>
      </popoverForm>)
    }
  }
}
